package cn.hp.service.impl;

import cn.hp.entity.UserRole;
import cn.hp.mapper.UserRoleMapper;
import cn.hp.service.UserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Service业务层处理
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Resource
    private UserRoleMapper userRoleMapper;
    /**
     * 查询列表
     *
     * @param userRole
     * @return
     */
    @Override
    public List<UserRole> selectUserRoleList(UserRole userRole) {
        return userRoleMapper.selectUserRoleList(userRole);
    }
}